import { Controller, Get, Query } from '@nestjs/common';
import { MongoTypeormService } from './mongo-typeorm.service';
import { CreatePhotoDto } from './dto/create.photo.dto';

@Controller('mongo-typeorm')
export class MongoTypeormController {
  constructor(private readonly mongoTypeormService: MongoTypeormService) {}

  @Get('create')
  createPhoto(
    @Query() createPhotoDto: CreatePhotoDto,
  ): Promise<CreatePhotoDto> {
    return this.mongoTypeormService.createPhoto(createPhotoDto);
  }
}
